class DelCommentPlugin {
  constructor(content) {
    this.content = content;
  }

  apply() {
    if(typeof this.content === "string") {
      return this.content.replace(/\/\**(\s|[\r\n])*(\w|\s)*(\s|[\r\n])*\**\//g, '').trim();
    }
    return this.content;
  }
}

module.exports = DelCommentPlugin;
